package cn.wolfcode.luowowo.search.repository;

import cn.wolfcode.luowowo.search.domain.DestinationTemplate;
import cn.wolfcode.luowowo.search.domain.RouteTemplate;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface RouteTemplateRepository extends ElasticsearchRepository<RouteTemplate,Long> {
    List<RouteTemplate> findByThemeSortId(Long sortId);

    List<RouteTemplate> findByBestTimeName(String month);
}
